package com.echartsdata.Entityimp;

import com.alibaba.fastjson2.JSONObject;
import com.echartsdata.Mapper.TouristMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/***
 * 忘仙谷游客来源公开占比
 * @author 凉笙
 * 2024-9-25
 */
@Component
public class TouristMapperimp {
    @Resource
    private TouristMapper touristMapper;
    public String get_list(){
        System.out.println("看看忘仙谷游客来源公开占比的数据返回的什么数据"+touristMapper.getTouristList());
        //json数据处理
        JSONObject json = new JSONObject();
        json.put("data",touristMapper.getTouristList());
        System.out.println("忘仙谷游客转换后的json数据是"+json.toString());
        return json.toJSONString();
    }

}
